export default {
  namespaced: true,
  state: {
    flag: false,
  },
  mutations: {
    open(state) {
      state.flag = true
    },
    close(state) {
      state.flag = false
    }
  },
  getters: {
    flag: state => state.flag
  },
  actions: {
    open({ commit }, config) {
      commit('open', config)
    },
    close({ commit }, config) {
      commit('close', config)
    }
  }
}
